import { Base } from '../../utils/base.js';

class YcSearch extends Base {
  constructor() {
    super();
  } //搜索页面


  getSearchFor1(datarow, callBack) {
    //console.log(datarow);
    var params = {
      url: 'getSearchFor1?datarow=' + datarow,
      sCallBack: function (res) {
        //console.log(res);
        callBack && callBack(res);
      }
    };
    this.request(params);
  } //搜索页面


  getSearchFor(datarow, callBack) {
    var param = {
      url: 'getSearch?datarow=' + datarow,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  } //省会


  getShengHuiRow(callBack) {
    var param = {
      url: 'shenghui',
      sCallBack: function (res) {
        //console.log(data);
        callBack && callBack(res);
      }
    };
    this.request(param);
  }

}

export { YcSearch };